package com.yunrui.device.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("device_monitor")
public class DeviceMonitor {
    private Long id;
    private Long cabinetId;
    private String ruleName;
    private String ruleDescription;
    private Integer monitorType; // 0：温度监控，1：电压监控，2：其他
    private String threshold;    // 触发阈值（字符串格式）
    private Integer status;      // 1：启用，0：禁用
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}